package com.glidecast.common
{

public class gcSettings
{
	/**
	* The current, one and only version of GlideCast
	*/
	static public const VERSION:String = "2.1alpha";

	/**
	* The root url for GlideCast Defintion Files (GDFs)
	*/
	static private const DOWNLOAD_URL:String = "http://www.glidecast.com"; //"http://localhost/Projects/glidecast/GlideCast/glidecastweb";

	/**
	* The root url for GlideCast Defintion Files (GDFs)
	*/
	static public const PROXY_URL:String = "http://www.glidecast.com/urlproxy.php?proxiedurl="; //"http://localhost/Projects/glidecast/GlideCast/glidecastweb";
    
	/**
	* The timer setting for feed downloads
	*/
	static public const FEED_INTERVAL:int = 900000; //15 minutes

	/**
	* The timer setting for feed downloads
	*/
	static public const TRANSITION_INTERVAL:int = 5000; //5 SECONDS
	
	/**
	* The width of the player
	*/
	static public const PLAYER_WIDTH:int = 640; 
	
	/**
	* The height of the player
	*/
	static public const PLAYER_HEIGHT:int = 385; 
        
	/*
	* Builds the GDF url
	*	variables:
		a = String = the id of the glidecast to download 
	*/
	static public function gcGDFUrl(a:String) : String
	{
		if (a != "")
		{
			return DOWNLOAD_URL + "/getgdf.php?_gcid=" + a;
			//return "http://localhost/Projects/glidecast/GlideCast/glideplayer/celeb_svg.gdf";
		}
		return a;
	}
	
	/*
	* Gets the url for the thumbnail of this glide
	*/
	static public function gcGDFThumbUrl(a:String) : String
	{
		if (a != "")
		{
			return DOWNLOAD_URL + "/images/thumbs/" + a + ".png";
		}
		return a;
	}
	/*
	* Gets the url for upload script for thumbnails
	*/
	static public function gcGDFThumbUploadUrl() : String
	{
		return DOWNLOAD_URL + "/pt.php";
	}
}



}
